﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>Easyui扩展库 按钮 - 落阳 整理</title>
    <link href="http://www.easyui-extlib.com/Content/Site.css" rel="stylesheet" />
    <script src="http://www.easyui-extlib.com/Scripts/jquery/jquery-1.11.0.min.js"></script>
    <script src="http://www.easyui-extlib.com/Scripts/jquery-extensions/jquery.jdirk.js"></script>
    <link href="http://www.easyui-extlib.com/Scripts/jquery-easyui/jquery-easyui-1.4.3/themes/default/easyui.css" rel="stylesheet" />
    <link href="http://www.easyui-extlib.com/Scripts/jquery-easyui/jquery-easyui-1.4.3/themes/icon.css" rel="stylesheet" />
    <script src="http://www.easyui-extlib.com/Scripts/jquery-easyui/jquery-easyui-1.4.3/jquery.easyui.min.js"></script>
    <script src="http://www.easyui-extlib.com/Scripts/jquery-easyui/jquery-easyui-1.4.3/locale/easyui-lang-zh_CN.js"></script>

    <script src="http://www.easyui-extlib.com/Scripts/jquery-easyui-extensions/linkbutton/jeasyui.extensions.linkbutton.setStyle.js"></script>
    <script>
        $(function () {
            $("#btnSet1").click(function () {
                var style = { "background": "red" };
                $("#btnTarget").linkbutton("setStyle", style);
            });

            $("#btnSet2").click(function () {
                var style = { "background": "green" };
                $("#btnTarget").linkbutton("setStyle", style);
            });

            $("#btnSet3").click(function () {
                var style = { "background": "blue" };
                $("#btnTarget").linkbutton("setStyle", style);
            });

            $("#btnSet4").click(function () {
                var style = { "background": "yellow" };
                $("#btnTarget").linkbutton("setStyle", style);
            });
        });
    </script>
</head>
<body>
    <div class="easyui-panel" data-options="fit:true,border:false" style="padding:20px;">
        <a id="btnTarget" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:false,style:{'background':'gray','color':'black','font-weight':'bold'}">目标按钮</a>
        <br />
        <br />
        <br />
        <a id="btnSet1" class="easyui-linkbutton" data-options="iconCls:'icon-edit'">增加1号样式，红色背景</a><br />
        <a id="btnSet2" class="easyui-linkbutton" data-options="iconCls:'icon-edit'">增加2号样式，绿色背景</a><br />
        <a id="btnSet3" class="easyui-linkbutton" data-options="iconCls:'icon-edit'">增加3号样式，蓝色背景</a><br />
        <a id="btnSet4" class="easyui-linkbutton" data-options="iconCls:'icon-edit'">增加4号样式，黄色背景</a><br />
    </div>
</body>
</html>
